package com.android.gufengmall.bean;

import com.android.gufengmall.gen.DiscussConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

import java.util.ArrayList;
import java.util.List;

/**
 * 论坛实体类
 */
@Entity
public class ForumBean {

    @Id(autoincrement = true)
    private Long id;

    private String title;        //标题
    private String info;         //内容
    private String userName;     //发布者名称
    private String userPhoto;    //发布者头像
    private String date;         //发布时间

    @Convert(columnType = String.class,converter = DiscussConverter.class)
    private List<DiscussBean> discussList;  //帖子讨论

    @Generated(hash = 1376217166)
    public ForumBean(Long id, String title, String info, String userName,
            String userPhoto, String date, List<DiscussBean> discussList) {
        this.id = id;
        this.title = title;
        this.info = info;
        this.userName = userName;
        this.userPhoto = userPhoto;
        this.date = date;
        this.discussList = discussList;
    }
    @Generated(hash = 2085914784)
    public ForumBean() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getInfo() {
        return this.info;
    }
    public void setInfo(String info) {
        this.info = info;
    }
    public String getUserName() {
        return this.userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getDate() {
        return this.date;
    }
    public void setDate(String date) {
        this.date = date;
    }
    public String getUserPhoto() {
        return this.userPhoto;
    }
    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }
    public List<DiscussBean> getDiscussList() {
        return this.discussList;
    }
    public void setDiscussList(List<DiscussBean> discussList) {
        this.discussList = discussList;
    }


}
